package com.qhhc.hospital.mapper;


import com.qhhc.hospital.entity.Car;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CarMapper {
    public int insertCar(Car car);
    
    public List<Car> selectAllCars();
    
    public Car selectCarById(@Param("id") Long id);
    public  List<Car> selectCarByOwnerId(@Param("owner_id") Long owner_id);
    public int updateCar(Car car);
    
    public int deleteCar(@Param("id") Long id);
}
